package androidx.appcompat.widget;

import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
import android.graphics.PorterDuff.Mode;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.util.AttributeSet;
import android.widget.ImageView;
import androidx.annotation.DrawableRes;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;
import androidx.annotation.RestrictTo.d;
import o.ca;
import o.ce;
import o.ct;
import o.hy;
import o.jd;

public class AppCompatImageView extends ImageView implements hy, jd {
    private final ce ˏ;
    private final ca ॱ;

    public AppCompatImageView(Context context) {
        this(context, null);
    }

    public AppCompatImageView(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, 0);
    }

    public AppCompatImageView(Context context, AttributeSet attributeSet, int i) {
        super(ct.ˋ(context), attributeSet, i);
        this.ॱ = new ca(this);
        this.ॱ.ˋ(attributeSet, i);
        this.ˏ = new ce(this);
        this.ˏ.ˋ(attributeSet, i);
    }

    public void setImageResource(@DrawableRes int i) {
        if (this.ˏ != null) {
            this.ˏ.ˊ(i);
        }
    }

    public void setImageDrawable(@Nullable Drawable drawable) {
        super.setImageDrawable(drawable);
        if (this.ˏ != null) {
            this.ˏ.ˊ();
        }
    }

    public void setImageBitmap(Bitmap bitmap) {
        super.setImageBitmap(bitmap);
        if (this.ˏ != null) {
            this.ˏ.ˊ();
        }
    }

    public void setImageURI(@Nullable Uri uri) {
        super.setImageURI(uri);
        if (this.ˏ != null) {
            this.ˏ.ˊ();
        }
    }

    public void setBackgroundResource(@DrawableRes int i) {
        super.setBackgroundResource(i);
        if (this.ॱ != null) {
            this.ॱ.ˎ(i);
        }
    }

    public void setBackgroundDrawable(Drawable drawable) {
        super.setBackgroundDrawable(drawable);
        if (this.ॱ != null) {
            this.ॱ.ˋ(drawable);
        }
    }

    @RestrictTo({d.ˊ})
    public void setSupportBackgroundTintList(@Nullable ColorStateList colorStateList) {
        if (this.ॱ != null) {
            this.ॱ.ˊ(colorStateList);
        }
    }

    @Nullable
    @RestrictTo({d.ˊ})
    public ColorStateList ˊ() {
        return this.ॱ != null ? this.ॱ.ˎ() : null;
    }

    @RestrictTo({d.ˊ})
    public void setSupportBackgroundTintMode(@Nullable Mode mode) {
        if (this.ॱ != null) {
            this.ॱ.ॱ(mode);
        }
    }

    @Nullable
    @RestrictTo({d.ˊ})
    public Mode ॱ() {
        return this.ॱ != null ? this.ॱ.ॱ() : null;
    }

    @RestrictTo({d.ˊ})
    public void setSupportImageTintList(@Nullable ColorStateList colorStateList) {
        if (this.ˏ != null) {
            this.ˏ.ˋ(colorStateList);
        }
    }

    @Nullable
    @RestrictTo({d.ˊ})
    public ColorStateList ˎ() {
        return this.ˏ != null ? this.ˏ.ˎ() : null;
    }

    @RestrictTo({d.ˊ})
    public void setSupportImageTintMode(@Nullable Mode mode) {
        if (this.ˏ != null) {
            this.ˏ.ˊ(mode);
        }
    }

    @Nullable
    @RestrictTo({d.ˊ})
    public Mode ˋ() {
        return this.ˏ != null ? this.ˏ.ॱ() : null;
    }

    protected void drawableStateChanged() {
        super.drawableStateChanged();
        if (this.ॱ != null) {
            this.ॱ.ˋ();
        }
        if (this.ˏ != null) {
            this.ˏ.ˊ();
        }
    }

    public boolean hasOverlappingRendering() {
        return this.ˏ.ˏ() && super.hasOverlappingRendering();
    }
}
